package xyz.zhouzhaodong.crm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 高校合同
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-22
 */
public class UniversityContract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 高校id
     */
    private String universityId;

    /**
     * 合同开始时间
     */
    private String contractTimeStart;

    /**
     * 合同结束时间
     */
    private String contractTimeEnd;

    /**
     * 合作政策
     */
    private String cooperationPolicy;

    /**
     * 佣金比例（百分之多少）
     */
    private Double commissionRate;

    /**
     * 合同状态
     */
    private String contractStatus;

    /**
     * 负责老师
     */
    private String chargeTeacher;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否有效（0有效，1无效）
     */
    private Integer flag;

    /**
     * 创建人id
     */
    private String createUser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    private String updateUser;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUniversityId() {
        return universityId;
    }

    public void setUniversityId(String universityId) {
        this.universityId = universityId;
    }

    public String getContractTimeStart() {
        return contractTimeStart;
    }

    public void setContractTimeStart(String contractTimeStart) {
        this.contractTimeStart = contractTimeStart;
    }

    public String getContractTimeEnd() {
        return contractTimeEnd;
    }

    public void setContractTimeEnd(String contractTimeEnd) {
        this.contractTimeEnd = contractTimeEnd;
    }

    public String getCooperationPolicy() {
        return cooperationPolicy;
    }

    public void setCooperationPolicy(String cooperationPolicy) {
        this.cooperationPolicy = cooperationPolicy;
    }

    public Double getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(Double commissionRate) {
        this.commissionRate = commissionRate;
    }

    public String getContractStatus() {
        return contractStatus;
    }

    public void setContractStatus(String contractStatus) {
        this.contractStatus = contractStatus;
    }

    public String getChargeTeacher() {
        return chargeTeacher;
    }

    public void setChargeTeacher(String chargeTeacher) {
        this.chargeTeacher = chargeTeacher;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UniversityContract{" +
                "id='" + id + '\'' +
                ", universityId='" + universityId + '\'' +
                ", contractTimeStart='" + contractTimeStart + '\'' +
                ", contractTimeEnd='" + contractTimeEnd + '\'' +
                ", cooperationPolicy='" + cooperationPolicy + '\'' +
                ", commissionRate=" + commissionRate +
                ", contractStatus='" + contractStatus + '\'' +
                ", chargeTeacher='" + chargeTeacher + '\'' +
                ", remark='" + remark + '\'' +
                ", flag=" + flag +
                ", createUser='" + createUser + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
